package com.lyx.TestTreeSet;

import com.lyx.entity.Student;

import java.util.Comparator;

public class TestComparator implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return -(o1.getId() - o2.getId());
    }
}
